/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aal.business;
import com.aal.entity.OrderDetail;
import com.aal.entity.OrderProduct;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author quy
 */
@Local
public interface OrderManagementLocal {
    List<OrderDetail> viewOrderDetail(long orderID);
    boolean editOrderStatus(long orderId, int status);
    List<OrderProduct> viewAll();
    List<OrderDetail> viewAllOrderDetail();
    OrderProduct getOrderProduct(long orderId);
    boolean placeOrder(String username,Date orderdate, double totalnetprice, double discountvalue, double shippingcost, double taxcost, double totalprice, int status, String shippingaddress, String receivername, String receiverphone,String customername,String billingaddress);
    Long maxOrderId();
    boolean createOrderDetail(long orderId,int productId,int quantity,double totalNetPrice,double shippingCost,double taxCost);
}
